package com.zjitc.pigspring.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zjitc.pigspring.bean.po.Collect;
import com.zjitc.pigspring.bean.po.CollectVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CollectService extends IService<Collect> {
    List<CollectVO> getAll();

    List<CollectVO> getByUser(Integer id);

    List<CollectVO> getListByUsername(CollectVO collect);

    boolean deleteByGoodId(Integer id);

    boolean deleteByUserId(Integer id);
}
